﻿using System;
using UnityEngine;
using HTDW_Framework;

namespace HTDW_Framework.GUI
{
    public class GUI
    {
#region "设置"
        private Font _font = null;
        private int _fontSize = 0;
        private FontStyle _fontStyle = FontStyle.Normal;
        private Color _fontColor = Color.white;

        public Font font
        {
            set
            {
                _font = value;
                UnityEngine.GUI.skin.font = _font;
            }
            get
            {
                if (UnityEngine.GUI.skin.font != _font)
                {
                    UnityEngine.GUI.skin.font = _font;
                }
                return _font;
            }
        }
        public int fontSize
        {
            set { _fontSize = value; }
            get { return _fontSize; }
        }
        public FontStyle fontStyle
        {
            set { _fontStyle = value; }
            get { return _fontStyle; }
        }
        public Color fontColor
        {
            set { _fontColor = value; }
            get { return _fontColor; }
        }
#endregion
        
#region "绘制"
        public static void DrawTexture(Vector2 position, Texture texture)
        {

        }
        public static void DrawTexture(Rect position, Texture texture)
        {

        }
        public static void DrawTexture(Rect position, Texture texture, Vector4 border)
        {

        }
        public static void DrawTexture(Rect position, Texture texture, GUIStyle style)
        {

        }


        public static void DrawText(Rect position, string text)
        {

        }
        public static void DrawText(Rect position, string text, TextAnchor textAnchor)
        {

        }
        public static void DrawText(Rect position, string text, TextAnchor textAnchor, FontStyle fontStyle)
        {

        }


#endregion
    }
}